package com.spot.data.test.demo.mapper;

import com.spot.data.test.demo.dto.PledgeDto;
import com.spot.data.test.demo.vo.CommonsSearchVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;

/**
 * <p></p>
 *
 * @author Andy
 * @date 2020/6/1
 * @since 1.2
 */
@Mapper
public interface PledgeMapper {

    /**
     * 获取续期仓单是否逾期列表
     * @param searchVo
     * @return
     */
    Collection<PledgeDto> selectRenew(@Param("searchVo") CommonsSearchVo searchVo);

    /**
     * 获取续期仓单是否逾期列表
     * @param searchVo
     * @return
     */
    Collection<PledgeDto> selectQuote(@Param("searchVo") CommonsSearchVo searchVo);

    PledgeDto getMaxRenewPledgeDto(Integer origRenewId);

    PledgeDto get(Integer id);
}
